-
Notifications
You must be signed in to change notification settings - Fork 73
Add available devices and dtypes selection to runner.py #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add available devices and dtypes selection to runner.py #101
Conversation
parser.add_argument('--dtype', '--dtypes', type=str, default="float32 float64", nargs='+', | ||
choices=("float32", "float64"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of PR scope, but int32 might be added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to add this kind of changes in other PR
logging.info('The device parameter value is not defined in config, ' | ||
'none is used') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move up from if
because --device
might be added later for xgboost, for example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now other configs do not support device parameter and such message may be confusing
Add parameters to runner.py that define devices and data types available to run
Unselected devices and data types will be ignored in configs
for example if config contains
device: ["host", "gpu", "cpu"]
and you run
python runner.py --devices cpu gpu
cpu and gpu cases will be launched,
but if config contains:
device: ["host", "gpu"]
and you run
python runner.py --devices cpu gpu
only gpu case will be launched
default values do not limit the available devices and data types